/* jshint esversion: 6 */
import { baseUrl } from "./config.js";
import moment from 'moment';
import Axios from "axios";

Axios.defaults.baseURL = baseUrl;

export let getEduInspectConditionApi = (departmentId) => {
    return (
        Axios.post("EduInspect/getEduInspectCondition", {
            eduDepartmentId: departmentId
        })
    );
}

export let getEduInspectConditionByChildDepartmentIdApi = (eduDepartmentId, childDepartmentId) => {
    return (
        Axios.post("EduInspect/getEduInspectConditionByChildDepartmentId", {
            eduDepartmentId: eduDepartmentId,
            childDepartmentId: childDepartmentId,
        })
    );
}

export let getEduInspectConditionBySymbolApi = (symbol, departmentId) => {
    return (
        Axios.post("EduInspect/getEduInspectConditionBySymbol", {
            symbol: symbol,
            eduDepartmentId: departmentId,
        })
    );
}

export let getEduInspectConditionByItemApi = (symbol, item) => {
    return (
        Axios.post("EduInspect/getEduInspectConditionByItem", {
            symbol: symbol,
            item: item,
        })
    );
}